javascript confirm yes no

59

javascript prompt yes/no -

var answer = window.confirm("Save data?");
if (answer) {
    //some code
}
else {
    //some code
}

Comments

Submit
0 Comments